#ifndef __ENCODER__
#define __ENCODER__

#define ENC_UPDATE_MS  100

//Setup TIMx for work with encoder's interface
void ENC_Configuration(TIM_TypeDef* TIMx);

//Update variable for compute velocity
int updateEncoders(void);

//Get encoder's value of channel
int getEncoder(u8 channel);

//Get frequency of any channel in rotate per seconds
int getFrequency(u8 channel);

#endif